package com.github.easyms.common.entity.auth;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.github.easyms.common.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @author Leo.Liao
 * 用户
 * @date 2020-04-09 11:33:37
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("es_auth_user")
public class User extends BaseEntity {

    @TableId
    private String userId;
    private String account;
    private String password;
    private String salt;
    private String roleId;
    private String firstName;
    private String lastName;
    private String language;
    private LocalDateTime lastEditPwd;
    private Integer pwdErrTimes;
    @TableField(exist = false)
    private String roleName;
    @TableField(exist = false)
    private String username;

}
